package com.ruoyi.combat.service.camera.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.combat.mapper.camera.CombatCameraGeoResultMapper;
import com.ruoyi.combat.domain.camera.CombatCameraGeoResult;
import com.ruoyi.combat.service.camera.ICombatCameraGeoResultService;

/**
 * 图像定位结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-13
 */
@Service
public class CombatCameraGeoResultServiceImpl implements ICombatCameraGeoResultService 
{
    @Autowired
    private CombatCameraGeoResultMapper combatCameraGeoResultMapper;

    /**
     * 查询图像定位结果
     * 
     * @param id 图像定位结果主键
     * @return 图像定位结果
     */
    @Override
    public CombatCameraGeoResult selectCombatCameraGeoResultById(Long id)
    {
        return combatCameraGeoResultMapper.selectCombatCameraGeoResultById(id);
    }

    /**
     * 查询图像定位结果列表
     * 
     * @param combatCameraGeoResult 图像定位结果
     * @return 图像定位结果
     */
    @Override
    public List<CombatCameraGeoResult> selectCombatCameraGeoResultList(CombatCameraGeoResult combatCameraGeoResult)
    {
        return combatCameraGeoResultMapper.selectCombatCameraGeoResultList(combatCameraGeoResult);
    }

    /**
     * 新增图像定位结果
     * 
     * @param combatCameraGeoResult 图像定位结果
     * @return 结果
     */
    @Override
    public int insertCombatCameraGeoResult(CombatCameraGeoResult combatCameraGeoResult)
    {
        combatCameraGeoResult.setCreateTime(DateUtils.getNowDate());
        return combatCameraGeoResultMapper.insertCombatCameraGeoResult(combatCameraGeoResult);
    }

    /**
     * 修改图像定位结果
     * 
     * @param combatCameraGeoResult 图像定位结果
     * @return 结果
     */
    @Override
    public int updateCombatCameraGeoResult(CombatCameraGeoResult combatCameraGeoResult)
    {
        combatCameraGeoResult.setUpdateTime(DateUtils.getNowDate());
        return combatCameraGeoResultMapper.updateCombatCameraGeoResult(combatCameraGeoResult);
    }

    /**
     * 批量删除图像定位结果
     * 
     * @param ids 需要删除的图像定位结果主键
     * @return 结果
     */
    @Override
    public int deleteCombatCameraGeoResultByIds(Long[] ids)
    {
        return combatCameraGeoResultMapper.deleteCombatCameraGeoResultByIds(ids);
    }

    /**
     * 删除图像定位结果信息
     * 
     * @param id 图像定位结果主键
     * @return 结果
     */
    @Override
    public int deleteCombatCameraGeoResultById(Long id)
    {
        return combatCameraGeoResultMapper.deleteCombatCameraGeoResultById(id);
    }
}
